var fs = require('fs')

function home(res){
    res.writeHead(200,{'content-type':'text/html'})
    fs.createReadStream(__dirname+'/index.html').pipe(res)
}

function review(res){
    res.writeHead(200,{'content-type':'text/html'})
    fs.createReadStream(__dirname+'/review.html').pipe(res)
}

function api_select(res,params){
    res.writeHead(200,{'content-type':'application/json'})
    res.write(JSON.stringify(params))
    res.end();
}

module.exports = {
    home,
    review,
    api_select
}

